package com.xjust.controller.physician;

import com.xjust.pojo.Result;
import com.xjust.pojo.ResultBean;
import com.xjust.service.DispositionRequestService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;


@RestController
@RequestMapping("/disposalmanagement")
public class DispositionRequestController {

    @Autowired
    private DispositionRequestService dispositionRequestService;

    //获取今日待处置列表
    @GetMapping("/getDisposalManagement")
    public Result getDisposalManagement(Integer page,Integer pageSize,String realName,String caseNumber){
        ResultBean list = dispositionRequestService.getDisposalManagement(page,pageSize,realName,caseNumber);
        return Result.success(list);
    }
    //获取已完成患者数量
    @GetMapping("/getFinishDisposalList")
    public Result getFinishDisposalList(){
        Integer count = dispositionRequestService.getFinishDisposalList();
        return Result.success(count);
    }
    //获取等待患者数量
    @GetMapping("/getWaitDisposalList")
    public Result getWaitDisposalList(){
        Integer count = dispositionRequestService.getWaitDisposalList();
        return Result.success(count);
    }

}
